package com.vimi8.ebb.dto;

/**
 * Created by think on 2017/4/10.
 */
public class TradeSituationDto {
    private float tradingVolume;//交易额
    private float businessVolume;//交易量
    private String type;//平台类型或数据类型

    public float getTradingVolume() {
        return tradingVolume;
    }

    public void setTradingVolume(float tradingVolume) {
        this.tradingVolume = tradingVolume;
    }

    public float getBusinessVolume() {
        return businessVolume;
    }

    public void setBusinessVolume(float businessVolume) {
        this.businessVolume = businessVolume;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        if(type.equals("1")){
            this.type = "第三方平台";
        }else if(type.equals("2")){
            this.type = "电商站点";
        }else if(type.equals("3")){
            this.type = "自建平台";
        }else if (type.equals("4")){
            this.type = "电商企业";
        }else{
            this.type = type;
        }
    }

    @Override
    public String toString() {
        return "TradeSituationDto{" +
                "tradingVolume=" + tradingVolume +
                ", businessVolume=" + businessVolume +
                ", platform='" + type + '\'' +
                '}';
    }
}
